<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
   	xmlns:ui="http://java.sun.com/jsf/facelets"
   	template="/pages/templates/template.xhtml">

	<ui:define name="windowTitle">
		Lajes - Contato
	</ui:define>

	<ui:define name="pageContent">
	<h:form id="form_contact">
		<div class="maingeneral">
			<div class="slide_blog_resize">
			    <div class="slide_blog_resize_b">
			      <h4>Contato</h4>
			      <div class="clr"></div>
			    </div>
		 	</div>
		    <div class="body">
			    <div class="body_resize">
			      <p:messages id="messages" showDetail="false" autoUpdate="false" showSummary="true" closable="true" />
			      
			      <div class="clr"></div>
			      <div class="left">
			        <h2>Entre em contato conosco</h2>
			        <p>Qualquer dúvida, sugestão ou crítica sobre nossa empresa e serviços nos deixe uma mensagem.</p>
			        <p></p>
			        <p>Agradecemos seu interesse e responderemos seu contato assim que possível.</p>
			          <ol>
			            <li>
			              <h:outputLabel for="name" value="Nome:"></h:outputLabel>
			              <p:inputText id="name" value="#{contatoController.contato.nome}" style="width: 250px;" styleClass="text" required="true" requiredMessage="Campo obrigatório: Nome!"></p:inputText>
			            </li>
			            <li>
			              <h:outputLabel for="email" value="Email:"></h:outputLabel>
			              <p:inputText id="email" value="#{contatoController.contato.email}" style="width: 250px;" styleClass="text" required="true" requiredMessage="Campo obrigatório: E-mail!"></p:inputText>
			            </li>
			            <li>
			              <h:outputLabel for="message" value="Mensagem:"></h:outputLabel>
			              <p:inputTextarea id="message" value="#{contatoController.contato.mensagem}" rows="15" cols="500" styleClass="text" required="true" requiredMessage="Campo obrigatório: Mensagem!"></p:inputTextarea>
			            </li>
			            <li class="buttons">
			              <div class="clr"></div>
			              
			              <p:commandLink id="sendButton" actionListener="#{contatoController.sendMessage}" onstart="$('.sendButton').hide();" onsuccess="$('.sendButton').show();" styleClass="sendButton" update="form_contact">
							<h:graphicImage value="/images/send.gif" alt="picture" border="0" class="none" />
						  </p:commandLink>
						  
						  <p:ajaxStatus style="width:64px;height:64px;">  
						    <f:facet name="start">  
						        <p:graphicImage value="/images/loading.gif" />  
						    </f:facet>  
						  
						    <f:facet name="complete">  
						        <h:outputText value="" />  
						    </f:facet>  
						  </p:ajaxStatus> 
						  <div class="clr"></div>
			            </li>
			          </ol>
			      </div>
					<div class="right">
						<h2>Endereço</h2>
						
						<p>
							<h:outputLink target="_blank" value="http://www.facebook.com/profile.php?id=100005045076935">
								<h:graphicImage value="/images/rss_1.gif" alt="picture" width="32" height="32" style="background:none; border:none;"/> 
							</h:outputLink>
						</p>
						
						<p>
							<strong>Localização</strong>						<br />
							Rua Caculé, 628. Qd. 01-A, Lt. 06, Vila Marajoara	<br />
							Jussara-GO, Brasil
						</p>
						
						<p>
							<strong>Outros Contatos</strong>		<br />
							Email: contato@lajeslaboratorio.com.br	<br />
							Site: www.lajeslaboratorio.com.br		<br />
							Telefone: (62) 3373-1732
						</p>
						
						<p>
							<p:gmap model="#{contatoController.GMap}" center="-15.869619,-50.868019" zoom="16" type="ROADMAP" style="width:285px;height:250px" />
						</p>
					</div>
		      	<div class="clr"></div>
		    </div>
		  </div>
		  <div class="clr"></div>
		</div>
		
		<script>
			$(window).load(function(){
				$('#slider')._TMS({
					banners:true,
					waitBannerAnimation:false,
					preset:'diagonalFade',
					easing:'easeOutQuad',
					pagination:true,
					duration:400,
					slideshow:8000,
					bannerShow:function(banner){
						banner.css({marginRight:-500}).stop().animate({marginRight:0}, 600)
					},
					bannerHide:function(banner){
						banner.stop().animate({marginRight:-500}, 600)
					}
					})
			})
		</script>
	</h:form>
	</ui:define>
</ui:composition>